home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / howfar.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  51 lines

  1. <search function="howfar">
  2.   <name>How Far Is It</name>
  3.   <category>Travel</category>
  4.   <contributor>John W. Bairen, Jr.</contributor>
  5.   <link>http://www.indo.com/distance/index.html</link>
  6.   <email>john_at_bairen_dot_net</email>
  7.   <description>
  8.   Indio.com's How Far Is It From City to City Calculator
  9.   <div class="helpboxDescLabels">Examples:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr><td>howfar /Pittsburgh, PA /Paris France </td></tr>
  12.       <tr><td>howfar /Pittsburgh, PA /Chicago, IL</td></tr>
  13.       <tr><td>howfar /Pittsburgh, PA</td></tr>
  14.       <tr><td>howfar Pittsburgh, PA</td></tr>      
  15.     </table>
  16.     </description>
  17.   <form name="howfarf"
  18.         method="get"
  19.         action="http://www.indo.com/cgi-bin/dist">
  20.     <input type="hidden" name="place1" value="" />
  21.     <input type="hidden" name="place2" value="" />
  22.   </form>
  23.   <script><![CDATA[
  24.     function howfar(q)
  25.     {
  26.       if( nullArgs("howfar", q) )
  27.         return false;
  28.       else
  29.       {
  30.         var howfararray = new Array();
  31.         howfararray = q.split("/")
  32.         if (howfararray[1])
  33.           document.howfarf.place1.value = howfararray[1];
  34.         else
  35.           document.howfarf.place1.value = q;
  36.         if (howfararray[2])
  37.           document.howfarf.place2.value = howfararray[2];
  38.         else
  39.           document.howfarf.place2.value = "";
  40.       }
  41.     submitForm(howfarf);
  42.     return true;
  43.     }
  44.   ]]></script>
  45.  
  46.   <copyright>
  47.     Copyright (c) 2002 David Bau
  48.     Distributed under the terms of the
  49.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  50.   </copyright>
  51. </search>